package net.dasoft.service.Impl;

import net.dasoft.dao.IAccountDao;
import net.dasoft.service.AccountService;
import net.dasoft.entity.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    private IAccountDao accountDao;

    @Override
    public List<Account> FindAll() {
        System.out.println("Service业务层，查询所有账户。。。");
        return accountDao.FindAll();
    }

    @Override
    public void saveAccount(Account account) {
        accountDao.saveAccount(account);
        System.out.println("保存账户");
    }
}
